package cool.tianyou.blue.bird.common.model.contstant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * EquipmentTypeEnum <br>
 * 设备类型
 *
 *
 * @author likeguo
 */
@AllArgsConstructor
public enum EquipmentTypeEnum {

    /**
     * 安卓手机端
     */
    PHONE_ANDROID(1, "安卓手机端"),
    /**
     * 苹果手机端
     */
    PHONE_IPHONE(2, "安卓手机端"),
    /**
     * mac端
     */
    MAC(4, "MAC端"),
    /**
     * mac端
     */
    I_MAC(5, "MAC端"),
    /**
     * window端
     */
    WINDOW(6, "Window端"),
    ;

    @Getter
    private final Integer code;
    @Getter
    private final String name;


    public static EquipmentTypeEnum get(int i) {
        for (EquipmentTypeEnum value : values()) {
            if (value.getCode().equals(i)) {
                return value;
            }
        }
        return null;
    }


}
